package com.freesky.biz.icbc.mapper;

import com.freesky.biz.icbc.domain.TFinanceAccount;
import com.freesky.biz.icbc.domain.TFinanceReferrer;
import com.freesky.biz.icbc.domain.TFinanceReferrerCoupon;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface FinanceReferrerMapper {

    List<TFinanceReferrer> findList(TFinanceReferrer financeReferrer);

    List<TFinanceReferrerCoupon> findReferrerCouponList(TFinanceReferrerCoupon referrerCoupon);

    List<TFinanceAccount> findAccountList(TFinanceAccount financeAccount);

    List<TFinanceAccount> selectUnProcessList();

    int updateFinaceAccountStatus(@Param("id") String id,
                                  @Param("status") String status,
                                  @Param("nextProcessDate") String nextProcessDate,
                                  @Param("failReason") String failReason,
                                  @Param("userId") String userId);

    int updateReferrerAmt(@Param("amt") Integer amt,@Param("id") String id);
}
